Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(twilio-run): upgrading serverless-runtime-types #470

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andrewbenington
Copy link

  • Upgraded serverless-runtime-types in the twilio-run package
  • Fixed typing errors that arose from using the new version
    • Added cookies attribute to Response class, as well as setCookie and removeCookie functions in order to fully implement the TwilioResponse interface
    • in the constructContext function of routes.ts, I had to explicitly include the SERVICE_SID and ENVIRONMENT_SID attributes of env due to env being typed as any
    • I had to specify ServerlessEventObject as the type parameter for an invocation of constructContext

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Andrew Benington added 2 commits February 28, 2023 12:11
fixed typing issues that arose from using the upgraded package
Cookies are stored with a value and optional list of attributes
@changeset-bot
Copy link

changeset-bot bot commented Feb 28, 2023

🦋 Changeset detected

Latest commit: ad52bb6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
twilio-run Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@andrewbenington andrewbenington changed the title Upgrading serverless-runtime-types for twilio-run feat(twilio-run): upgrading serverless-runtime-types for twilio-run Feb 28, 2023
@andrewbenington andrewbenington changed the title feat(twilio-run): upgrading serverless-runtime-types for twilio-run feat(twilio-run): upgrading serverless-runtime-types Feb 28, 2023
@vingiarrusso
Copy link

Hi @andrewbenington, thank you for submitting a PR to the serverless toolkit. At this time, it's unlikely we will be able to merge feature PRs for at least the near future. I'd like to keep this open since it's a good start at a needed improvement, but there are some things that would need to be addressed before merging this when the time comes.

Thanks again for taking the time to contribute a PR and apologies that we cannot move forward at present!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants